package org.example.inventory.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 采购类（对应采购记录表）
 */
public class Purchase extends BaseEntity{
    private Integer productId;          // 商品ID
    private Integer quantity;           // 采购数量
    private BigDecimal purchasePrice;   // 采购价格
    private Integer operatorId;         // 操作员ID
    private LocalDateTime purchaseTime; // 采购时间

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getPurchasePrice() {
        return purchasePrice;
    }

    public void setPurchasePrice(BigDecimal purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    public Integer getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Integer operatorId) {
        this.operatorId = operatorId;
    }

    public LocalDateTime getPurchaseTime() {
        return purchaseTime;
    }

    public void setPurchaseTime(LocalDateTime purchaseTime) {
        this.purchaseTime = purchaseTime;
    }
}
